package com.android.svmc.app.mobile.util;

public interface CommonDefine {
	public static final String baseURL                                 = "http://anhson.freevnn.com/wordpress/api/";
	public static final String URL_GET_ALL_CATEGORY                    = baseURL+"get_category_index/";
	public static final String URL_GET_DETAIL_POST                     = baseURL+"get_post/?post_id=";
	public static final String URL_GET_ALL_POST_IN_CATEGORY            = baseURL+"get_category_posts/?id=";
	public static final String URL_SUBMIT_COMMENT                      = baseURL+"submit_comment/?post_id=";
	public static final String baseURL_PICTURE                         = "http://anhson.freevnn.com/picture/api/";
	public static final String URL_GET_ALL_PICTURE                     = baseURL_PICTURE+"get_category_posts/?id=";
	public static final String URL_GET_DETAIL_PICTURE                  = baseURL_PICTURE+"get_post/?post_id=";
	public static final String URL_SUBMIT_COMMENT_PICTURE              = baseURL_PICTURE+"submit_comment/?post_id=";
	public static final int IS_POST_MODUL                              = 1;
	public static final int IS_PICTURE_MODUL                           = 2;
	
	//public static final int DEFAULT_IMAGE = R.drawable.default_img;
	public static final String TRUE                                    ="true";
	public static final String FALSE                                   ="false";
	public static final String NULL                                    ="null";
	
	// Constant element Json
	public static final String COUNT                                   = "count";
	public static final String CATEGORY                                ="categories";
	public static final String ID_CATEGORY                             = "id";
	public static final String SLUG                                    ="slug";
	public static final String TITLE                                   ="title";
	public static final String DESCRIPTION                             ="description";
	public static final String POST_COUNT                              = "post_count";
	public static final String DATE_PUBLIC                             = "date";
	public static final String THUMBNAIL                               ="thumbnail";
	public static final String CONTENT                                 = "content";
	public static final String POSTS                                   ="posts";
	public static final String POST                                    ="post";
	public static final String ID_POST                                 = "id";
	public static final String AUTHOR                                  = "author";
	public static final String COMMENTS                                ="comments";
	public static final String COUNT_COMMENT                           ="comment_count";
	public static final String PAGES                                   ="pages";
	public static final String CATEGORY_LABEL                          = "category";
	
	public static final String NAME_SUBMIT_COMMENT                     = "name";
	public static final String DATE_SUBMIT_COMMENT                     ="date";
	public static final String CONTENT_COMMENT                         ="content";
	//
	public static final int SPLASH_TIME 					           = 2000;
	public static final int TIMEOUT_CONNECTION				           = 5000;
	public static final int TIMEOUT_SOCKET_CONNECTION		           = 60000;
	// tabhost
	public static final int TAB_STORY                                  = 0;
	public static final int TAB_PICTURE                                = 1;
	public static final int TAB_SOCIAL                                 = 2;
	public static final int TAB_SETTING                                = 3;
	public static final int TAB_PROFILE                                = 4;
	
	// defined type of view
	public static final int UNKNOW_VIEW_TYPE						   = -1;
	public static final int DEFAULT_PAGE                               = 1;
	public static final int DEFAULT_ID                                 = 1;
	
	// type dialog
	public static final int DIALOG_INFO                                =1000;
	public static final int DIALOG_INFO_NETWORK                        =1001;
	public static final int DIALOG_SUBMIT_NAME_COMMENT                 =1002;
	public static final int DIALOG_CONFIRM                             =1003;
	public static final int DIALOG_WARING_ROTATION                     =1004;
	public static final int DIALOG_WARING_DELETE_DIARY                 =1005;
	// type activity
	public static final String ID_ACTIVITY                             ="ID_activity";
	public static final int POST_ACTIVITY                              =1;
	public static final int PICTURE_ACTIVITY                           =2;
	// facebook API
	public static final String KEY_API_FACEBOOK                        ="308180782571605";
	// modul chat online
	public static final String APP_ID                                  ="1691";
	public static final String AUTH_KEY                                ="vkyOxJ9bD43x9n9";
	public static final String AUTH_SECRET                             ="uuYpXc2FkUpccwW";
	// save setting
	public static final String IS_ROTATION_SCREEN                      ="rotation_creen";
	public static final String IS_NOTIFICATION                         ="notification";
	public static final String IS_OFFLINE_MODE                         ="offline_mode";
	public static final String ACCOUNT_NAME_DISPLAY                    ="account_name";
	public static final String IS_SYNC_DIARY                           ="sync_diary";
	public static final String IS_STARTED_SERVICE_NOTIFICATION         ="is_start_notification";
	public static final String IS_STARTED_SERVICE_OFFLINE_MODE         ="is_start_offline_mode";
	// type file 
	public static final int JPEG                                       = 1;
	public static final int PNG                                        = 2;
	// path folder in SdCard
	public static final String APP_FOLDER                              = "/sentertainment";
	// tag log for debug
	public static final String TAG                                     ="anhson";
	//
	public static final int TRUYENCUOI                                 =4;
	public static final int TRUYENNGAN                                 =5;
	public static final int HATGIONGTAMHON                             =6;
	public static final int TRUYENNGANVOZ                              =7;
	public static final int TAMSUBANDOC                                =8;
	// file on Sdcard
	public static final String FILE_CONSTANT_TOTAL_PIC                 ="constant_picture";
	public static final String FILE_DATA_OFFLINE_PICTURE               ="list_picture.txt";
	// validate
	public static final int PASSWORD_LENGHT_FAIL                       = 1;
	public static final int CONFIRM_PASSWORD_FAIL                      = 2;
	public static final int CONFIRM_PASSWORD_SUCCESS                   = 0;
	public static final boolean ACCOUNT_IS_EXITS                       = true;
	public static final boolean ACCOUNT_IS_NOT_EXITS                   = false;
	
	public static final int LOGIN_SUCCESS                              = 1;
	public static final int PASSWORD_WRONG                             = 2;
	public static final int LOGIN_FAIL                                 = 3;
	public static final int USERNAME_WRONG                             = 4;
}
